package com.zk.shop.servlet.order;

import com.zk.shop.entity.Order;
import com.zk.shop.service.Impl.OrderServiceImpl;
import com.zk.shop.service.OrderService;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
/*
 * 管理员展示所有订单
 *
 * return List<Order>
 * */

public class ShowOrderAndUserServlet extends HttpServlet {
    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        OrderService orderService=new OrderServiceImpl();
        List<Order> orderList=orderService.showOrderAndUser();
    }

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        doPost(req,resp);
    }
}
